package com.example.shirodemo;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan(value = "com.example.shirodemo.dao")
public class ShirodemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShirodemoApplication.class, args);
        ByteSource credentialsSalt = ByteSource.Util.bytes("123");
        String s = credentialsSalt.toBase64();
        Object result=  new SimpleHash("MD5","123456",credentialsSalt,5);
        System.out.println(result);


    }

}
